import React from 'react';
import { Button, Modal } from 'antd';

const CreateForm = (props) => {
  const { modalVisible, onCancel, width,btn_view,title,className } = props;

  return (
    <Modal
      title={title}
      destroyOnClose
      width={width}
      visible={modalVisible}
      onCancel={() => onCancel()}
      footer={btn_view}
      className={className}
    >
      {props.children}
    </Modal>
  );
};

export default CreateForm;
